package com.example.contract;


import com.example.contract.sendnft.SendNft;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/nft")
@RestController
public class SendNftController {

    @Autowired
    SendNft sendNft;

    @GetMapping("/nft/name")
    public void nftName(){
        sendNft.nftNum();
    }


    @GetMapping("/send/nft")
    public String sendNft(String address,String img){
        System.out.println(address);
        System.out.println(img);
       return sendNft.sendNft(address, img);
    }

}
